using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Av.Utils;
using System.Threading;

namespace SiteStatusTracker
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Form2 f = new Form2();
            string name = f.Name;
            //Log4cs.Log(Importance.Debug, "Name of form is: {0}", name);
            try
            {
                Application.EnableVisualStyles();
                //Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(f);

            } catch( Exception ex )
            {
                Log4cs.Log(Importance.Error, "Error in main!");
                Log4cs.Log(Importance.Debug, ex.ToString());
                MessageBox.Show("Error executing " + name, name, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
    }
}